package com.account.boot.model.vo;

import java.text.SimpleDateFormat;

import com.account.boot.model.User;

public class UserVo extends BaseModelVo{

	private String token;
	
	private String uid;

    private String name;

    private String nickName;

    private String password;

    private String email;

    private String head;
    
    private String createDate;

	public UserVo() {
		super();
	}

	public UserVo(User user) {
		super();
		
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		
		this.uid = user.getUid();
		this.name = user.getName();
		this.nickName = user.getNickName();
		this.password = user.getPassword();
		this.email = user.getEmail();
		this.head = user.getHead();
		this.createDate = sdf.format(user.getCreateDate());
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getHead() {
		return head;
	}

	public void setHead(String head) {
		this.head = head;
	}

	public String getCreateDate() {
		return createDate;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}
}
